package arXiv;

/* 
* ParseOutput.java
* class for returning the feed output (not sure if this is necessary?)
*/

public class ParseOutput{

	int numEntries = 0;
	int startIndex = 0;
	int itemsPerPage = 0;
	int items = 0;
	
	Article[] entries;
	
	public ParseOutput() {
	
	}
	
	public void initializeArray() {
	
		entries = new Article[numEntries];
	
	}
	
	public String display() {
		//TODO: write html to display this?
	
		String toDisplay = "Displaying " + items + " results\n";
		
		for (int i=0; i<items; i++) {
		
			toDisplay += "Entry " + (i+1) + "\n";
			toDisplay += entries[i].display();
		}
		toDisplay += "\n";
	
		return toDisplay;
	}

}